import React, { Component } from 'react'

class Child extends Component {

    componentDidMount() {
        console.log(React.Children)
        console.log(this.props.children)
    }

    render() { 
        return (
            <div>
                Child
                {
                    React.Children.map(this.props.children, item => {
                        return item
                    })
                }
            </div>
        )
    }
}
 
export default Child;